package com.szholly.data.coderule;

import com.szholly.data.general.*;

public interface IRule {
	// / <summary>
	// / 获取编码规则
	// / </summary>
	// / <param name="ruleID">编码规则编号</param>
	// / <param name="table">具体表</param>
	// / <param name="entity">数据实体对象</param>
	// / <param name="refEntity">参考实体对象</param>
	// / <returns></returns>
	String GetCodeRule(String ruleID, ITable table, RowBase entity,
                       RowBase refEntity);

	// / <summary>
	// / 确定是否可以编码
	// / </summary>
	// / <param name="ruleID">编码规则编号</param>
	// / <param name="table">具体表</param>
	// / <param name="entity">数据实体对象</param>
	// / <param name="refEntity">参考实体对象</param>
	// / <returns></returns>
	Boolean NeedCodeRule(String ruleID, ITable table, RowBase entity,
                         RowBase refEntity);
}
